package com.cqq.normal.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.common.core.base.BaseQuery;
import com.cqq.normal.dao.ConstantDao;
import com.cqq.normal.dao.domain.Constant;
import com.cqq.normal.dao.mapper.ConstantMapper;

@Repository("constantDao")
public class ConstantDaoImpl implements ConstantDao {

	@Autowired
	private ConstantMapper constantMapper;
	
	
	public void add(Constant obj) {
		constantMapper.add(obj);
	}

	
	public Integer delete(Serializable id) {
		return constantMapper.delete(id);
	}

	
	public Integer update(Constant obj) {
		return constantMapper.update(obj);
	}

	
	public Constant queryById(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public List<Constant> queryAll() {
		return constantMapper.queryAll();
	}

	
	public List<Constant> queryPage(BaseQuery query) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public Integer queryCount(BaseQuery query) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public List<Constant> queryByType(String type) {
		// TODO Auto-generated method stub
		return constantMapper.queryByType(type);
	}

}
